<!DOCTYPE html><html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>VS中使用SDL需要定义入口点解决办法 | chilono!</title><script src="https://cdn.bootcss.com/valine/1.4.4/Valine.min.js"></script><link rel="stylesheet" href="/css/arknights.css"><link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.1.2/styles/atom-one-dark-reasonable.min.css"><style>@font-face {
 font-family: BenderLight;
 src: local('Bender'), url("/font/BenderLight.ttf");
}
@font-face {
 font-family: 'JetBrains Mono';
 src: local('JetBrains Mono'), url('/font/JetBrainsMono-Regular.woff2') format('woff2');
}</style><meta name="generator" content="Hexo 5.0.2"></head><body><header><nav><a href="/">Home</a><a href="/archives/">Archives</a><a href="/about/">About</a></nav></header><main><article><div id="post-bg"><div id="post-title"><div id="post-info"><span>date:<time datetime="2019-06-24T14:58:37.000Z" id="date"> 2019-06-24</time></span><br><span>updated:<time datetime="2020-08-22T13:28:07.243Z" id="updated"> 2020-08-22</time></span></div><h1>VS中使用SDL需要定义入口点解决办法</h1><hr></div><div id="post-content"><h2 id="问题起始"><a href="#问题起始" class="headerlink" title="问题起始"></a>问题起始</h2><p><img src="/2019/06/24/vs%E4%B8%AD%E4%BD%BF%E7%94%A8sdl%E9%9C%80%E8%A6%81%E5%AE%9A%E4%B9%89%E5%85%A5%E5%8F%A3%E7%82%B9%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/%E6%9C%AA%E5%AE%9A%E4%B9%89%E5%85%A5%E5%8F%A3%E7%82%B9.png" alt="入口点"></p>
<p>初次使用SDL，链接时提示的错误。</p>
<p>本人才学疏浅，不知原理，但好在找到了解决方法，如下。</p>
<h2 id="解决方法"><a href="#解决方法" class="headerlink" title="解决方法"></a>解决方法</h2><ol>
<li><p>打开项目属性</p>
<p><img src="/2019/06/24/vs%E4%B8%AD%E4%BD%BF%E7%94%A8sdl%E9%9C%80%E8%A6%81%E5%AE%9A%E4%B9%89%E5%85%A5%E5%8F%A3%E7%82%B9%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/%E6%89%93%E5%BC%80%E5%B1%9E%E6%80%A7.png" alt="打开属性"></p>
</li>
<li><p>填写入口点</p>
<p><img src="/2019/06/24/vs%E4%B8%AD%E4%BD%BF%E7%94%A8sdl%E9%9C%80%E8%A6%81%E5%AE%9A%E4%B9%89%E5%85%A5%E5%8F%A3%E7%82%B9%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/%E5%A1%AB%E5%86%99%E5%85%A5%E5%8F%A3%E7%82%B9.png" alt="填写入口点"></p>
</li>
</ol>
<p>设置时需要注意配置与平台是否正确，使用的与配置不同则无效果。</p>
<div id="paginator"></div></div><div id="post-footer"><hr><a href="/2020/08/12/linux%E4%BD%BF%E7%94%A8%E5%B0%8F%E7%AC%94%E8%AE%B0/">← Prev Linux使用小笔记</a><span style="color: #fe2"> | </span><a href="/2019/03/11/linux%E8%87%AA%E5%8A%A8%E6%8C%82%E8%BD%BD/">linux自动挂载 Next →</a><hr></div><div id="bottom-btn"><a id="to-index" href="#post-index" title="index">≡</a><a id="to-top" href="#post-title" title="to top">∧</a></div><div id="Valine"></div><script>new Valine({
 el: '#Valine'
 , appId: 'w0GpBUKuLLybCyT9IuCKjvz5-9Nh9j0Va'
 , appKey: 'RHBH0vdwxr2ikIt32lBoqK69'
 , placeholder: '此条评论委托企鹅物流发送'
})</script></div></article><aside><div id="about"><a href="/" id="logo"><img src="https://ak.hypergryph.com/assets/index/images/ak/pc/faction/1.png" alt="Logo"></a><h1 id="Dr"><a href="/"> Dr.Chilono</a></h1><section id="total"><a id="total-archives" href="/archives"><span class="total-title">Archives Total:</span><span class="total-number">14</span></a><div id="total-tags"><span class="total-title">Tags:</span><span class="total-number">35</span></div><div id="total-categories"><span class="total-title">Categories:</span><span class="total-number">3</span></div></section></div><div id="aside-block"><h1>INDEX</h1><div id="post-index"><ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%97%AE%E9%A2%98%E8%B5%B7%E5%A7%8B"><span class="toc-number">1.</span> <span class="toc-text">问题起始</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95"><span class="toc-number">2.</span> <span class="toc-text">解决方法</span></a></li></ol></div></div><footer><nobr><span class="text-title">©</span><span class="text-content">1970 to 2020</span></nobr><wbr><nobr><span class="text-title">ICP</span><span class="text-content">——备案号——</span></nobr><wbr><wbr><nobr>published with&nbsp;<a target="_blank" rel="noopener" href="http://hexo.io">Hexo&nbsp;</a></nobr><wbr><nobr>Theme&nbsp;<a target="_blank" rel="noopener" href="https://github.com/Yue-plus/hexo-theme-arknights">Arknight&nbsp;</a></nobr><wbr><nobr>by&nbsp;<a target="_blank" rel="noopener" href="https://github.com/Yue-plus">Yue_plus</a></nobr></footer></aside></main><script src="/js/arknights.js"></script><script src="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.1.2/highlight.min.js"></script></body></html>